<template>
  <fault-type-form :mode="mode" :code="$route.query.code || ''" />
</template>

<script>
import FaultTypeForm from './components/FaultTypeForm.vue'

export default {
  name: 'FaultTypeEditPage',
  components: { FaultTypeForm },
  computed: {
    mode() { return this.$route.query.code ? 'edit' : 'create' }
  }
}
</script>


